integral with completing the square